import ProxyInterface from '../proxy-interface';
import { FolderInfoModel } from '../model/file';

class FolderProxy implements ProxyInterface<FolderInfoModel> {
  private folder = new FolderInfoModel();

  constructor (responseData) {
    let data = responseData.data || responseData;
    Object.assign<FolderInfoModel, any>(this.folder, data);
  }

  getModel (): FolderInfoModel {
    return this.folder;
  }
}

export {
  FolderProxy
};
